<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsToMany;

class Role extends Model
{
    protected $table  = 'role';
    public function menus(): BelongsToMany
    {
        return $this->belongsToMany(Menu::class, RoleRelMenu::class, 'role_id', 'menu_id');
    }
}
